<nav class="navbar navbar-default">
	<div class="container-fluid">
		<div class="container">
			<div class="col-md-8">
				<div class="navbar-brand">
					<a href="/" class="button button-glow button-small button-border button-rounded button-primary">index</a>
				</div>
				<div class="navbar-brand">
					<a href="/articles/post" class="button button-glow button-small button-border button-rounded button-primary">添加文章</a>
				</div>
				<div class="navbar-brand">
					<a href="/articles/list" class="button button-glow button-small button-border button-rounded button-primary">文章修改</a>
				</div>
			</div>
			<div class="col-md-4">
				<% if(user=='' || user==null) {%>
					<div class="navbar-brand">
						<a href="/log/login" class="button button-glow button-small button-border button-rounded button-primary">login</a>
					</div>
					<div class="navbar-brand">
						<a href="/log/reg" class="button button-glow button-small button-border button-rounded button-primary">reg</a>
					</div>
				<%} else {%>
					<div class="navbar-brand">
						<a href="#" class="button button-glow button-small button-border button-rounded button-primary"><%-user.name%></a>
					</div>
				<%}%>
			</div>
		</div>
	</div>
</nav>